// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ViewUI from 'view-design'
import 'view-design/dist/styles/iview.css'
import '@/components/style/iview.css'
import '@/configs/api'
import store from '@/store'
Vue.use(ViewUI)

Vue.config.productionTip = false

Vue.filter('lengthCtrl', function (val, length) {
  // console.log('谁用了lengthCtrl', val)
  if (!val) return ''
  return val.substr(0, length) + '...'
})

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
